/* MenkulEX v1.1.10 — smart blog sidebar + balanced 3-column archive */

/* Archive: fixed 3-column rhythm on desktop */
body.blog .xan-blog-grid-premium-v1103,
body.category .xan-blog-grid-premium-v1103{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}
body.blog .xan-blog-card-premium-v1103,
body.blog .xan-blog-card-premium-v1103:nth-child(1),
body.blog .xan-blog-card-premium-v1103:nth-child(5),
body.blog .xan-blog-card-premium-v1103:nth-child(8),
body.category .xan-blog-card-premium-v1103,
body.category .xan-blog-card-premium-v1103:nth-child(1),
body.category .xan-blog-card-premium-v1103:nth-child(5),
body.category .xan-blog-card-premium-v1103:nth-child(8){
  grid-column:auto / span 1!important;
}
body.blog .xan-blog-card-premium-v1103 .xan-blog-card-media-v124,
body.category .xan-blog-card-premium-v1103 .xan-blog-card-media-v124{
  aspect-ratio:16/10!important;
  min-height:220px!important;
  max-height:220px!important;
}
body.blog .xan-blog-card-premium-v1103 .xan-blog-card-image-v170,
body.blog .xan-blog-card-premium-v1103 .xan-blog-card-media-v124 img,
body.category .xan-blog-card-premium-v1103 .xan-blog-card-image-v170,
body.category .xan-blog-card-premium-v1103 .xan-blog-card-media-v124 img{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;
}

/* Single hero and headings: smaller and centered */
body.single-post .xan-single-post-v171 .xan-single-hero-shell-v127{
  width:min(calc(100% - 40px), 920px)!important;
  max-width:920px!important;
  text-align:center!important;
}
body.single-post .xan-single-post-v171 .xan-single-back-v127{display:inline-flex!important;margin:0 auto 10px!important;}
body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1{
  max-width:820px!important;
  margin:8px auto 14px!important;
  font-size:clamp(27px,2.35vw,38px)!important;
  line-height:1.14!important;
  letter-spacing:-.024em!important;
  text-align:center!important;
}
body.single-post .xan-single-post-v171 .xan-single-hero-v171 p{
  max-width:760px!important;
  margin:0 auto!important;
  text-align:center!important;
  font-size:15.5px!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h2,
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h3,
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h4{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  font-weight:500!important;
}
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h2{font-size:clamp(21px,1.75vw,28px)!important;line-height:1.26!important;margin-top:28px!important;margin-bottom:10px!important;}
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h3{font-size:clamp(18.5px,1.45vw,24px)!important;line-height:1.28!important;margin-top:24px!important;margin-bottom:8px!important;}
body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h4{font-size:clamp(17px,1.25vw,21px)!important;line-height:1.32!important;margin-top:20px!important;margin-bottom:8px!important;}

/* Smart sidebar */
body.single-post .xan-single-post-v171 .xan-single-sidebar-v1110{
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
}
body.single-post .xan-single-post-v171 .xan-sidebar-card-v1110{
  background:#FFFFFF!important;
  border:1px solid rgba(5,89,112,.12)!important;
  border-radius:22px!important;
  box-shadow:0 14px 36px rgba(4,31,64,.055)!important;
  padding:18px!important;
}
body.single-post .xan-single-post-v171 .xan-sidebar-heading-v1110{display:flex!important;flex-direction:column!important;gap:5px!important;margin-bottom:12px!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-heading-v1110 strong{color:#041F40!important;font-size:20px!important;line-height:1.2!important;font-weight:500!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-heading-v1110 small{color:#5B6A78!important;font-size:12px!important;line-height:1.45!important;}
body.single-post .xan-single-post-v171 .xan-reading-progress-v1110{height:8px!important;border-radius:999px!important;background:#EAF0F2!important;overflow:hidden!important;margin:2px 0 12px!important;}
body.single-post .xan-single-post-v171 .xan-reading-progress-v1110 span{display:block!important;width:0;height:100%;background:linear-gradient(90deg,#055970 0%, #13364C 100%)!important;border-radius:inherit!important;transition:width .18s ease!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-flow-v1110{display:grid!important;gap:8px!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-flow-v1110 a{display:block!important;padding:10px 12px!important;border-radius:14px!important;background:#F5F7F8!important;color:#041F40!important;text-decoration:none!important;font-size:13px!important;line-height:1.4!important;font-weight:500!important;border:1px solid rgba(5,89,112,.06)!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-flow-v1110 a.is-active{background:#055970!important;color:#FFFFFF!important;border-color:#055970!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-module-list-v1110{display:grid!important;gap:9px!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-module-list-v1110 a{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;padding:11px 12px!important;border-radius:14px!important;background:#F5F7F8!important;color:#041F40!important;text-decoration:none!important;border:1px solid rgba(5,89,112,.06)!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-module-list-v1110 a span{font-size:13px!important;font-weight:500!important;color:#041F40!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-module-list-v1110 a small{font-size:10.5px!important;color:#055970!important;line-height:1.4!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110 div{padding:14px 10px!important;border-radius:16px!important;background:#F5F7F8!important;text-align:center!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110 b{display:block!important;color:#041F40!important;font-size:22px!important;line-height:1!important;font-weight:600!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110 span{display:block!important;color:#055970!important;font-size:11px!important;line-height:1.35!important;margin-top:6px!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-note-v1110 p,
body.single-post .xan-single-post-v171 .xan-sidebar-cta-v1110 p{margin:0!important;color:#13364C!important;font-size:13px!important;line-height:1.65!important;}
body.single-post .xan-single-post-v171 .xan-sidebar-cta-v1110 a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;margin-top:14px!important;padding:0 14px!important;border-radius:14px!important;background:#055970!important;color:#FFFFFF!important;text-decoration:none!important;font-size:13px!important;font-weight:500!important;}
body.single-post .xan-single-post-v171 .xan-related-list-v127{grid-template-columns:1fr!important;}

@media (max-width:1180px){
  body.blog .xan-blog-grid-premium-v1103,body.category .xan-blog-grid-premium-v1103{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:760px){
  body.blog .xan-blog-grid-premium-v1103,body.category .xan-blog-grid-premium-v1103{grid-template-columns:1fr!important;}
  body.blog .xan-blog-card-premium-v1103 .xan-blog-card-media-v124,body.category .xan-blog-card-premium-v1103 .xan-blog-card-media-v124{min-height:205px!important;max-height:none!important;}
  body.single-post .xan-single-post-v171 .xan-single-hero-v171 h1{font-size:clamp(25px,6.6vw,32px)!important;}
  body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h2{font-size:clamp(20px,5.4vw,25px)!important;}
  body.single-post .xan-single-post-v171 .xan-single-prose-v1103 h3{font-size:clamp(18px,4.7vw,22px)!important;}
  body.single-post .xan-single-post-v171 .xan-sidebar-metric-grid-v1110{grid-template-columns:1fr!important;}
}
