/* MenkulEX v1.0.68 — PROJECT-ONLY STABILITY PASS
   No global layout selectors. Repairs only project archive/detail components. */

/* PROJECT ARCHIVE — pure white open surfaces + stable card rhythm */
body.post-type-archive-xan_project .xan-listing-page-v168,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-project-hero-v132,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-layout,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-results{
  background:#fff!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-project-hero-shell-v132,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-project-hero-copy-v132,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-project-hero-media-v132,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-filter-panel,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-toolbar,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-specs-v132 span,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-card-flow-tags-v163 span{
  background:#fff!important;
}

@media(min-width:1181px){
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-layout{
    grid-template-columns:280px minmax(0,1fr)!important;
    gap:20px!important;
    padding-top:28px!important;
    padding-bottom:30px!important;
  }
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
    align-items:stretch!important;
  }
}
@media(min-width:901px) and (max-width:1180px){
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-layout{
    grid-template-columns:250px minmax(0,1fr)!important;
    gap:16px!important;
    padding-bottom:28px!important;
  }
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card{
  height:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-body{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-foot{
  margin-top:auto!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
  gap:6px!important;
  width:100%!important;
  align-items:stretch!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>a{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  padding:0 7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #055970!important;
  border-radius:9px!important;
  background:#055970!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:500 10px/1.15 Poppins,Arial,sans-serif!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  opacity:1!important;
  filter:none!important;
  text-shadow:none!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>.xan-card-info-v132{
  background:#fff!important;
  color:#055970!important;
  -webkit-text-fill-color:#055970!important;
  border-color:rgba(5,89,112,.22)!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>a:hover,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>a:focus-visible{
  background:#041F40!important;
  border-color:#041F40!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>.xan-card-info-v132:hover,
body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>.xan-card-info-v132:focus-visible{
  background:#fff!important;
  border-color:#055970!important;
  color:#041F40!important;
  -webkit-text-fill-color:#041F40!important;
}
body.post-type-archive-xan_project .xan-listing-page-v168 .page-numbers{
  margin:24px 0 8px!important;
}

/* PROJECT DETAIL — top hero/spec/tools physically share the same centered desktop shell. */
body.single-xan_project .xan-project-detail-v168,
body.single-xan_project .xan-project-detail-v168 .xan-project-top-v140,
body.single-xan_project .xan-project-detail-v168 .xan-project-main-v135{
  background:#fff!important;
}
@media(min-width:1181px){
  body.single-xan_project .xan-project-detail-v168 .xan-project-top-v140{
    width:100%!important;
    padding:12px 0 14px!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-heading-v140.xan-container{
    display:block!important;
    box-sizing:border-box!important;
    width:min(calc(100% - 48px),1480px)!important;
    max-width:1480px!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    position:static!important;
    float:none!important;
    transform:none!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-title-side-v145,
  body.single-xan_project .xan-project-detail-v168 .xan-project-summary-panel-v145,
  body.single-xan_project .xan-project-detail-v168 .xan-project-summary-cards-v145{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-summary-panel-v145{
    grid-template-columns:minmax(340px,.72fr) minmax(0,1.28fr)!important;
    gap:20px!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-tools-v164{
    position:static!important;
    width:auto!important;
    max-width:100%!important;
    margin:10px 0 0!important;
    padding:0!important;
    justify-content:flex-start!important;
  }
}
body.single-xan_project .xan-project-detail-v168 .xan-project-summary-cards-v145>div,
body.single-xan_project .xan-project-detail-v168 .xan-project-gallery-v135,
body.single-xan_project .xan-project-detail-v168 .xan-gallery-caption-v135,
body.single-xan_project .xan-project-detail-v168 .xan-detail-tabs-v135,
body.single-xan_project .xan-project-detail-v168 .xan-detail-block,
body.single-xan_project .xan-project-detail-v168 .xan-detail-spec-grid>div{
  background:#fff!important;
}

/* Tablet: balanced summary without desktop overflow. */
@media(min-width:761px) and (max-width:1180px){
  body.single-xan_project .xan-project-detail-v168 .xan-project-heading-v140.xan-container{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin-inline:auto!important;
    padding-inline:0!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-summary-panel-v145{
    grid-template-columns:1fr!important;
  }
}

/* Mobile: preserve the existing safe dock/scroll work; only fix white surfaces and action rhythm. */
@media(max-width:760px){
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-listing-layout{
    background:#fff!important;
  }
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.post-type-archive-xan_project .xan-listing-page-v168 .xan-list-card-actions-v132>a:last-child:nth-child(odd){
    grid-column:1/-1!important;
  }
  body.single-xan_project .xan-project-detail-v168 .xan-project-heading-v140.xan-container{
    width:calc(100% - 18px)!important;
    margin-inline:auto!important;
  }
}


/* v1.0.71 — PROJECT ARCHIVE desktop/tablet balance only. */
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-toolbar-v133{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) auto auto!important;
  gap:12px!important;
  align-items:center!important;
  background:#FFFFFF!important;
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-sort-form-v133{
  display:flex!important;align-items:center!important;gap:8px!important;margin:0!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-favorite-filter-v164{
  margin:0!important;width:auto!important;justify-self:end!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171{
  position:relative!important;overflow:hidden!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171 .xan-card-badge-status{
  top:auto!important;left:10px!important;right:auto!important;bottom:10px!important;
  width:auto!important;max-width:48%!important;min-height:28px!important;padding:5px 9px!important;border-radius:9px!important;
  background:#FFFFFF!important;color:#041F40!important;border:1px solid rgba(5,89,112,.14)!important;font-size:9.5px!important;line-height:1.15!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171 .xan-card-badge-type{
  top:10px!important;left:10px!important;right:auto!important;bottom:auto!important;
  width:auto!important;max-width:52%!important;min-height:28px!important;padding:5px 9px!important;border-radius:9px!important;
  background:#055970!important;color:#FFFFFF!important;font-size:9.5px!important;line-height:1.15!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171>.xan-project-tools-v164{
  top:10px!important;right:10px!important;left:auto!important;bottom:auto!important;width:auto!important;max-width:48%!important;gap:6px!important;justify-content:flex-end!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171>.xan-project-tools-v164 .xan-project-tool-btn{
  min-height:29px!important;height:29px!important;padding:0 8px!important;border-radius:9px!important;font-size:9px!important;box-shadow:0 4px 12px rgba(4,31,64,.08)!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171>.xan-project-tools-v164 .xan-project-tool-btn[aria-pressed="true"]{
  background:#041F40!important;border-color:#041F40!important;color:#FFFFFF!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-actions-v132{
  grid-template-columns:repeat(3,minmax(0,1fr))!important
}
body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-actions-v132>a{white-space:normal!important;line-height:1.15!important}
html.xan-has-compare body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-layout{padding-bottom:130px!important}
@media(max-width:900px){
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-toolbar-v133{grid-template-columns:1fr auto!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-favorite-filter-v164{grid-column:1/-1!important;justify-self:stretch!important;width:100%!important}
}
@media(max-width:760px){
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-toolbar-v133{grid-template-columns:1fr!important;gap:10px!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-sort-form-v133{width:100%!important;justify-content:space-between!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-sort-form-v133 select{flex:1 1 auto!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-actions-v132{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-actions-v132>a:last-child{grid-column:1/-1!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171 .xan-card-badge-status{bottom:9px!important;left:9px!important;max-width:48%!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171 .xan-card-badge-type{top:9px!important;left:9px!important;max-width:48%!important}
  body.post-type-archive-xan_project .xan-listing-page-v171 .xan-list-card-v171>.xan-project-tools-v164{top:9px!important;right:9px!important;max-width:52%!important}
  html.xan-has-compare body.post-type-archive-xan_project .xan-listing-page-v171 .xan-listing-layout{padding-bottom:180px!important}
}
