
/* V155 STLBEAST site consistency sweep
   Purpose: normalize public layout, image sizing, product cards, links, and global logo behavior. */

:root{
  --stlb155-bg:#030914;
  --stlb155-panel:#071222;
  --stlb155-panel2:#0a162a;
  --stlb155-line:rgba(37,199,255,.22);
  --stlb155-blue:#25c7ff;
  --stlb155-purple:#a846ff;
  --stlb155-text:#f5fbff;
  --stlb155-muted:#b8c8dc;
}

/* Global sizing guardrails */
body{overflow-x:hidden!important}
img,svg,video{max-width:100%;height:auto}
.v114-shell,.stlb125-shell,.shell,.main,.legacy-main,main,.v140-members-page main{
  width:min(1240px,calc(100% - 24px))!important;
  margin-inline:auto!important;
}

/* Header/logo consistency across old and new templates */
header.nav,
header.v114-nav,
header.stlb125-nav,
.v140-header{
  border-color:var(--stlb155-line)!important;
  background:linear-gradient(180deg,rgba(5,12,24,.95),rgba(2,7,15,.97))!important;
  box-shadow:0 18px 55px rgba(0,0,0,.30)!important;
}

.v140-logo,
.stlb125-brand,
.logo.clean-wordmark,
.v114-logo.clean-wordmark,
.stlb147-logo-frame{
  min-height:0!important;
  height:auto!important;
  max-width:320px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px 10px!important;
  border-radius:16px!important;
  line-height:0!important;
  overflow:hidden!important;
}

.v140-logo img,
.stlb125-brand img,
.logo.clean-wordmark img,
.v114-logo.clean-wordmark img,
.stlb147-logo-frame img,
footer img[src*="stlbeast-premium-header-logo-v146"],
header img[src*="stlbeast-premium-header-logo-v146"]{
  width:clamp(170px,18vw,285px)!important;
  max-width:100%!important;
  max-height:72px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  background:transparent!important;
  filter:drop-shadow(0 0 14px rgba(37,199,255,.23)) saturate(1.08) contrast(1.06)!important;
}

/* Nav links */
.v140-header nav,
.navlinks,
.v114-links,
.stlb125-links{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}

.v140-header nav a,
.navlinks a,
.v114-links a,
.stlb125-links a{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}

/* Sections and cards should share one visual language */
.section,.v114-section,.stlb125-section,.v140-section,.stlb127-gallery-panel,.stlb127-release-hero{
  border-radius:22px!important;
  border:1px solid var(--stlb155-line)!important;
  background:linear-gradient(145deg,rgba(6,14,30,.94),rgba(3,8,18,.98))!important;
  box-shadow:0 18px 55px rgba(0,0,0,.26)!important;
}

.card,.v114-card,.stlb125-meta,.stlb125-step,.stlb125-product-card,.stlb133-release-card,.v140-card,.v140-product-card,.stlb127-view-card{
  border:1px solid rgba(37,199,255,.16)!important;
  background:linear-gradient(145deg,rgba(7,16,34,.92),rgba(4,9,20,.98))!important;
}

/* Product/listing image consistency */
.stlb125-product-card .image,
.stlb133-release-card .media,
.v140-product-img,
.stlb127-view-card figure,
.stlb127-release-media{
  display:grid!important;
  place-items:center!important;
  min-height:220px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% 40%,rgba(37,199,255,.15),transparent 42%),
    linear-gradient(145deg,rgba(4,10,22,.98),rgba(2,6,14,.98))!important;
}

.stlb125-product-card .image img,
.stlb133-release-card .media img,
.v140-product-img img,
.stlb127-view-card figure img,
.stlb127-release-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:220px!important;
  object-fit:contain!important;
  object-position:center!important;
  opacity:1!important;
  visibility:visible!important;
}

/* Hero image consistency */
.v114-hero:before{background-size:cover!important}
.v140-hero-panel img,.hero-art img,.shield-lockup{
  object-fit:contain!important;
  object-position:center!important;
}

/* Broken-image fallback appearance */
img[alt]{
  color:#eaf8ff;
  font-size:.8rem;
}

/* Footer consistency */
.footer,.v114-footer,.v140-footer,.stlb125-footer{
  border-top:1px solid rgba(37,199,255,.14)!important;
}

/* Mobile polish */
@media(max-width:760px){
  .v114-shell,.stlb125-shell,.shell,.main,.legacy-main,main,.v140-members-page main{
    width:min(100% - 12px,1240px)!important;
  }
  header.nav,header.v114-nav,header.stlb125-nav,.v140-header{
    justify-content:center!important;
    text-align:center!important;
  }
  .v140-logo img,.stlb125-brand img,.logo.clean-wordmark img,.v114-logo.clean-wordmark img,.stlb147-logo-frame img{
    width:min(100%,235px)!important;
    max-height:62px!important;
  }
  .stlb125-product-card .image,
  .stlb133-release-card .media,
  .v140-product-img,
  .stlb127-view-card figure,
  .stlb127-release-media,
  .stlb125-product-card .image img,
  .stlb133-release-card .media img,
  .v140-product-img img,
  .stlb127-view-card figure img,
  .stlb127-release-media img{
    min-height:200px!important;
  }
}
