/*
Theme Name: Divi Child
Template: Divi
Version: 1.0
Description: CUPE Local 2 child theme. All custom code lives here so Divi updates never wipe it.
*/

/* 2026-03-28: Homepage typography consistency fix */
html body.home #main-content .et_pb_section .et_pb_row .et_pb_column .et_pb_module .et_pb_text_inner,
html body.home #main-content .et_pb_section .et_pb_row .et_pb_column .et_pb_module .et_pb_text_inner p,
html body.home #main-content .et_pb_section .et_pb_row .et_pb_column .et_pb_module .et_pb_text_inner span,
html body.home #main-content .et_pb_section .et_pb_row .et_pb_column .et_pb_module .et_pb_text_inner p span,
html body.home #main-content #cupe-latest-news .cupe-news-card-body,
html body.home #main-content #cupe-latest-news .cupe-news-card-body p,
html body.home #main-content #cupe-latest-news .cupe-news-card-excerpt,
html body.home #main-content #cupe-latest-news .cupe-news-card-date {
  font-family: Inter, sans-serif !important;
}

html body.home #main-content #cupe-latest-news h2,
html body.home #main-content #cupe-latest-news .cupe-news-card-body h3,
html body.home #main-content #cupe-latest-news .cupe-news-card-body h3 a {
  font-family: Montserrat, sans-serif !important;
}

/* 2026-03-28: News archive card cleanup
   - body/excerpt text should use Inter, not inherited serif
   - CTA should sit below the excerpt, not inline in the text flow
   - cards need better spacing
   - featured image crop should prioritize the human subjects a bit better */
body.blog .et_pb_post,
body.archive.category .et_pb_post,
body.archive.category-news .et_pb_post {
  font-family: Inter, sans-serif !important;
  color: #1a1a1a;
}

body.blog .et_pb_post .entry-title,
body.blog .et_pb_post .entry-title a,
body.archive.category .et_pb_post .entry-title,
body.archive.category .et_pb_post .entry-title a,
body.archive.category-news .et_pb_post .entry-title,
body.archive.category-news .et_pb_post .entry-title a {
  font-family: Montserrat, sans-serif !important;
}

body.blog .et_pb_post p,
body.blog .et_pb_post,
body.archive.category .et_pb_post p,
body.archive.category .et_pb_post,
body.archive.category-news .et_pb_post p,
body.archive.category-news .et_pb_post {
  font-family: Inter, sans-serif !important;
  line-height: 1.7 !important;
}

body.blog .et_pb_post .post-meta,
body.archive.category .et_pb_post .post-meta,
body.archive.category-news .et_pb_post .post-meta {
  display: block !important;
  margin-top: 8px !important;
  margin-bottom: 10px !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  color: #5b6470 !important;
}

body.blog .et_pb_post .entry-featured-image-url,
body.archive.category .et_pb_post .entry-featured-image-url,
body.archive.category-news .et_pb_post .entry-featured-image-url {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 18px;
}

body.blog .et_pb_post .entry-featured-image-url img,
body.archive.category .et_pb_post .entry-featured-image-url img,
body.archive.category-news .et_pb_post .entry-featured-image-url img {
  width: 100%;
  height: 260px !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  display: block;
}

body.blog .et_pb_post:first-of-type .entry-featured-image-url img,
body.archive.category .et_pb_post:first-of-type .entry-featured-image-url img,
body.archive.category-news .et_pb_post:first-of-type .entry-featured-image-url img {
  object-position: 62% 42% !important;
}

body.blog .et_pb_post .cupe-read-more,
body.archive.category .et_pb_post .cupe-read-more,
body.archive.category-news .et_pb_post .cupe-read-more {
  display: inline-block !important;
  margin-top: 18px !important;
  clear: both;
  font-family: Inter, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: top;
}

body.blog .et_pb_post,
body.archive.category .et_pb_post,
body.archive.category-news .et_pb_post {
  margin-bottom: 52px !important;
}

/* 2026-03-28: News archive mobile/tablet layout polish */
body.blog #main-content,
body.archive.category #main-content,
body.archive.category-news #main-content {
  background: linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
}
body.blog #main-content .container,
body.archive.category #main-content .container,
body.archive.category-news #main-content .container {
  width: min(1120px, calc(100% - 32px)) !important;
}
body.blog #left-area,
body.archive.category #left-area,
body.archive.category-news #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}
body.blog #content-area,
body.archive.category #content-area,
body.archive.category-news #content-area {
  display: block !important;
}
body.blog .et_pb_post,
body.archive.category .et_pb_post,
body.archive.category-news .et_pb_post {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15,25,84,.06);
  padding: 18px 18px 22px !important;
  overflow: hidden;
}
body.blog .et_pb_post .entry-title,
body.archive.category .et_pb_post .entry-title,
body.archive.category-news .et_pb_post .entry-title {
  font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 10px !important;
}
body.blog .et_pb_post .entry-title a,
body.archive.category .et_pb_post .entry-title a,
body.archive.category-news .et_pb_post .entry-title a {
  color: #0f1954 !important;
}
body.blog .et_pb_post p:not(.post-meta),
body.archive.category .et_pb_post p:not(.post-meta),
body.archive.category-news .et_pb_post p:not(.post-meta),
body.blog .et_pb_post,
body.archive.category .et_pb_post,
body.archive.category-news .et_pb_post {
  font-size: 16px !important;
}
body.blog .et_pb_post .cupe-read-more,
body.archive.category .et_pb_post .cupe-read-more,
body.archive.category-news .et_pb_post .cupe-read-more {
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f1954;
  color: #fff !important;
  text-decoration: none !important;
}
body.blog .et_pb_post .cupe-read-more:hover,
body.archive.category .et_pb_post .cupe-read-more:hover,
body.archive.category-news .et_pb_post .cupe-read-more:hover {
  background: #1d2d87;
}
@media (max-width: 980px) {
  body.blog #main-content .container,
  body.archive.category #main-content .container,
  body.archive.category-news #main-content .container {
    width: min(100%, calc(100% - 28px)) !important;
  }
  body.blog .et_pb_post,
  body.archive.category .et_pb_post,
  body.archive.category-news .et_pb_post {
    margin-bottom: 20px !important;
    padding: 14px 14px 18px !important;
    border-radius: 14px;
  }
  body.blog .et_pb_post .entry-featured-image-url,
  body.archive.category .et_pb_post .entry-featured-image-url,
  body.archive.category-news .et_pb_post .entry-featured-image-url {
    margin: -14px -14px 14px !important;
    border-radius: 14px 14px 0 0;
  }
  body.blog .et_pb_post .entry-featured-image-url img,
  body.archive.category .et_pb_post .entry-featured-image-url img,
  body.archive.category-news .et_pb_post .entry-featured-image-url img {
    height: 220px !important;
  }
  body.blog .et_pb_post .entry-title,
  body.archive.category .et_pb_post .entry-title,
  body.archive.category-news .et_pb_post .entry-title {
    font-size: 1.4rem !important;
  }
}
@media (max-width: 767px) {
  body.blog #main-content .container,
  body.archive.category #main-content .container,
  body.archive.category-news #main-content .container {
    width: calc(100% - 22px) !important;
  }
  body.blog .et_pb_post,
  body.archive.category .et_pb_post,
  body.archive.category-news .et_pb_post {
    padding: 12px 12px 16px !important;
    border-radius: 12px;
  }
  body.blog .et_pb_post .entry-featured-image-url,
  body.archive.category .et_pb_post .entry-featured-image-url,
  body.archive.category-news .et_pb_post .entry-featured-image-url {
    margin: -12px -12px 12px !important;
    border-radius: 12px 12px 0 0;
  }
  body.blog .et_pb_post .entry-featured-image-url img,
  body.archive.category .et_pb_post .entry-featured-image-url img,
  body.archive.category-news .et_pb_post .entry-featured-image-url img {
    height: 200px !important;
    object-position: center 35% !important;
  }
  body.blog .et_pb_post .post-meta,
  body.archive.category .et_pb_post .post-meta,
  body.archive.category-news .et_pb_post .post-meta {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  body.blog .et_pb_post .cupe-read-more,
  body.archive.category .et_pb_post .cupe-read-more,
  body.archive.category-news .et_pb_post .cupe-read-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px !important;
  }
}
/* 2026-03-28: Better group-photo crop for TTC Unions Standing Together */
body.blog .et_pb_post.post-4377 .entry-featured-image-url img,
body.archive.category .et_pb_post.post-4377 .entry-featured-image-url img,
body.archive.category-news .et_pb_post.post-4377 .entry-featured-image-url img {
  object-position: center 22% !important;
}
@media (max-width: 767px) {
  body.blog .et_pb_post.post-4377 .entry-featured-image-url img,
  body.archive.category .et_pb_post.post-4377 .entry-featured-image-url img,
  body.archive.category-news .et_pb_post.post-4377 .entry-featured-image-url img {
    object-position: center 18% !important;
  }
}
/* 2026-03-28: FORCE group-photo crop final override */
html body.blog .et_pb_post.post-4377 .entry-featured-image-url img,
html body.archive.category .et_pb_post.post-4377 .entry-featured-image-url img,
html body.archive.category-news .et_pb_post.post-4377 .entry-featured-image-url img,
html body.blog article#post-4377 .entry-featured-image-url img,
html body.archive.category article#post-4377 .entry-featured-image-url img,
html body.archive.category-news article#post-4377 .entry-featured-image-url img {
  object-position: center 62% !important;
}
@media (max-width: 767px) {
  html body.blog .et_pb_post.post-4377 .entry-featured-image-url img,
  html body.archive.category .et_pb_post.post-4377 .entry-featured-image-url img,
  html body.archive.category-news .et_pb_post.post-4377 .entry-featured-image-url img,
  html body.blog article#post-4377 .entry-featured-image-url img,
  html body.archive.category article#post-4377 .entry-featured-image-url img,
  html body.archive.category-news article#post-4377 .entry-featured-image-url img {
    object-position: center 66% !important;
  }
}