/* MenkulEX v1.0.75 — Blog reading & media system
   Scope: blog archive/taxonomies and single post only. No global typography reset. */

/* ---------- Archive cards: controlled typography ---------- */
body.blog .xan-blog-card-body-v124 h2,
body.category .xan-blog-card-body-v124 h2,
body.tag .xan-blog-card-body-v124 h2,
body.author .xan-blog-card-body-v124 h2,
body.date .xan-blog-card-body-v124 h2{
  margin:4px 0 8px!important;
  font-size:clamp(17px,1.15vw,20px)!important;
  line-height:1.32!important;
  letter-spacing:-.018em!important;
  font-weight:500!important;
  color:#041F40!important;
}
body.blog .xan-blog-card-body-v124 h2 a,
body.category .xan-blog-card-body-v124 h2 a,
body.tag .xan-blog-card-body-v124 h2 a,
body.author .xan-blog-card-body-v124 h2 a,
body.date .xan-blog-card-body-v124 h2 a{
  display:block!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.blog .xan-blog-card-body-v124 h2 a::first-letter,
body.category .xan-blog-card-body-v124 h2 a::first-letter,
body.tag .xan-blog-card-body-v124 h2 a::first-letter,
body.author .xan-blog-card-body-v124 h2 a::first-letter,
body.date .xan-blog-card-body-v124 h2 a::first-letter{
  text-transform:uppercase!important;
}
body.blog .xan-blog-card-body-v124 p,
body.category .xan-blog-card-body-v124 p,
body.tag .xan-blog-card-body-v124 p,
body.author .xan-blog-card-body-v124 p,
body.date .xan-blog-card-body-v124 p{
  font-size:14px!important;
  line-height:1.72!important;
  color:#13364C!important;
  font-weight:400!important;
  text-align:justify!important;
  text-justify:inter-word!important;
  hyphens:auto!important;
  overflow-wrap:anywhere!important;
}
body.blog .xan-blog-card-body-v124 small,
body.category .xan-blog-card-body-v124 small,
body.tag .xan-blog-card-body-v124 small,
body.author .xan-blog-card-body-v124 small,
body.date .xan-blog-card-body-v124 small{
  font-size:11.5px!important;
  line-height:1.35!important;
  letter-spacing:.055em!important;
  font-weight:500!important;
}
body.blog .xan-blog-read-v124,
body.category .xan-blog-read-v124,
body.tag .xan-blog-read-v124,
body.author .xan-blog-read-v124,
body.date .xan-blog-read-v124{
  font-size:13.5px!important;
  line-height:1.35!important;
  font-weight:500!important;
}

/* ---------- Archive images: card is full, original visual remains complete ---------- */
body.blog .xan-blog-card-media-v124,
body.category .xan-blog-card-media-v124,
body.tag .xan-blog-card-media-v124,
body.author .xan-blog-card-media-v124,
body.date .xan-blog-card-media-v124{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  aspect-ratio:16/10!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#EEF3F5!important;
  isolation:isolate!important;
}
body.blog .xan-blog-media-bg-v124,
body.category .xan-blog-media-bg-v124,
body.tag .xan-blog-media-bg-v124,
body.author .xan-blog-media-bg-v124,
body.date .xan-blog-media-bg-v124{
  display:block!important;
  position:absolute!important;
  inset:-2%!important;
  z-index:0!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  opacity:.30!important;
  filter:saturate(.92) brightness(1.03)!important;
  transform:scale(1.04)!important;
}
body.blog .xan-blog-card-media-v124::after,
body.category .xan-blog-card-media-v124::after,
body.tag .xan-blog-card-media-v124::after,
body.author .xan-blog-card-media-v124::after,
body.date .xan-blog-card-media-v124::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:rgba(255,255,255,.16)!important;
  pointer-events:none!important;
}
body.blog .xan-blog-card-media-v124 img,
body.blog .xan-blog-card-image-v170,
body.category .xan-blog-card-media-v124 img,
body.category .xan-blog-card-image-v170,
body.tag .xan-blog-card-media-v124 img,
body.tag .xan-blog-card-image-v170,
body.author .xan-blog-card-media-v124 img,
body.author .xan-blog-card-image-v170,
body.date .xan-blog-card-media-v124 img,
body.date .xan-blog-card-image-v170{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  border-radius:0!important;
  filter:none!important;
  transform:none!important;
  opacity:1!important;
}

/* ---------- Single article hero: smaller and calmer ---------- */
body.single-post .xan-single-post-v171 .xan-single-hero-v171{
  padding:30px 0 28px!important;
  background:#FFFFFF!important;
}
body.single-post .xan-single-post-v171 .xan-single-hero-shell-v127{
  max-width:1280px!important;
}
body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1{
  max-width:980px!important;
  margin:12px 0 16px!important;
  font-size:clamp(36px,3.45vw,50px)!important;
  line-height:1.10!important;
  letter-spacing:-.038em!important;
  font-weight:500!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1::first-letter{
  text-transform:uppercase!important;
}
body.single-post .xan-single-post-v171 .xan-single-hero-v171 p{
  max-width:920px!important;
  margin:0!important;
  font-size:17px!important;
  line-height:1.72!important;
  color:#13364C!important;
  text-align:justify!important;
  text-justify:inter-word!important;
  hyphens:auto!important;
}

/* ---------- Single article reading scale ---------- */
body.single-post .xan-single-post-v171 .xan-single-prose-v127{
  color:#041F40!important;
  font-size:17px!important;
  line-height:1.82!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 p{
  margin:0 0 1.15em!important;
  color:#13364C!important;
  font-size:17px!important;
  line-height:1.82!important;
  font-weight:400!important;
  text-align:justify!important;
  text-justify:inter-word!important;
  hyphens:auto!important;
  overflow-wrap:break-word!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h2{
  margin:1.45em 0 .55em!important;
  font-size:clamp(26px,2.15vw,32px)!important;
  line-height:1.22!important;
  letter-spacing:-.025em!important;
  font-weight:500!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h3{
  margin:1.35em 0 .5em!important;
  font-size:clamp(21px,1.7vw,25px)!important;
  line-height:1.28!important;
  letter-spacing:-.018em!important;
  font-weight:500!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h4,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h5,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h6{
  margin:1.25em 0 .45em!important;
  font-size:19px!important;
  line-height:1.32!important;
  font-weight:500!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h2::first-letter,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h3::first-letter,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h4::first-letter,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h5::first-letter,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 h6::first-letter{
  text-transform:uppercase!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 ul,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 ol{
  margin:.75em 0 1.25em!important;
  padding-left:1.35em!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 li{
  margin:.32em 0!important;
  font-size:16.5px!important;
  line-height:1.72!important;
  color:#13364C!important;
}

/* ---------- All article images: no crop, no overflow, no half-visible media ---------- */
body.single-post .xan-single-post-v171 .xan-single-inline-media-v127{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#FFFFFF!important;
}
body.single-post .xan-single-post-v171 .xan-single-inline-media-v127 span{
  display:none!important;
}
body.single-post .xan-single-post-v171 .xan-single-inline-media-v127 img,
body.single-post .xan-single-post-v171 .xan-single-blog-image-v169,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 img{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  filter:none!important;
  transform:none!important;
  opacity:1!important;
}
body.single-post .xan-single-post-v171 .xan-single-inline-media-v127 img,
body.single-post .xan-single-post-v171 .xan-single-blog-image-v169{
  width:100%!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 figure,
body.single-post .xan-single-post-v171 .xan-single-prose-v127 .wp-block-image{
  max-width:100%!important;
  margin:1.35em auto!important;
  overflow:hidden!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v127 figcaption{
  margin-top:8px!important;
  color:#52697A!important;
  font-size:12.5px!important;
  line-height:1.5!important;
  text-align:center!important;
}

/* ---------- Related articles: smaller titles + complete thumbnails ---------- */
body.single-post .xan-single-post-v171 .xan-related-box-v127 h2{
  font-size:22px!important;
  line-height:1.25!important;
  font-weight:500!important;
}
body.single-post .xan-single-post-v171 .xan-related-title-v127{
  font-size:14px!important;
  line-height:1.36!important;
  font-weight:500!important;
  color:#041F40!important;
  text-transform:none!important;
}
body.single-post .xan-single-post-v171 .xan-related-title-v127::first-letter{
  text-transform:uppercase!important;
}
body.single-post .xan-single-post-v171 .xan-related-thumb-v127{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#EEF3F5!important;
}
body.single-post .xan-single-post-v171 .xan-related-thumb-v127 img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#EEF3F5!important;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width:1024px){
  body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1{
    font-size:clamp(34px,5.6vw,44px)!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-prose-v127,
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 p{
    font-size:16.5px!important;
  }
}
@media (max-width:640px){
  body.blog .xan-blog-card-body-v124 h2,
  body.category .xan-blog-card-body-v124 h2,
  body.tag .xan-blog-card-body-v124 h2,
  body.author .xan-blog-card-body-v124 h2,
  body.date .xan-blog-card-body-v124 h2{
    font-size:18px!important;
  }
  body.blog .xan-blog-card-body-v124 p,
  body.category .xan-blog-card-body-v124 p,
  body.tag .xan-blog-card-body-v124 p,
  body.author .xan-blog-card-body-v124 p,
  body.date .xan-blog-card-body-v124 p{
    font-size:13.7px!important;
    line-height:1.68!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-hero-v171{
    padding:22px 0 20px!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1{
    font-size:30px!important;
    line-height:1.13!important;
    letter-spacing:-.028em!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-hero-v171 p{
    font-size:14.5px!important;
    line-height:1.68!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-prose-v127,
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 p{
    font-size:15.5px!important;
    line-height:1.78!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 h2{
    font-size:24px!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 h3{
    font-size:20px!important;
  }
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 h4,
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 h5,
  body.single-post .xan-single-post-v171 .xan-single-prose-v127 h6{
    font-size:18px!important;
  }
}
