/* Synergy Research prof2: peptides small fixes (COA thumbnails uncut, compact trust cards on phones) */
.coacard .thumb{height:auto !important;aspect-ratio:4/3;overflow:hidden}
.coacard .thumb img{width:100% !important;height:100% !important;object-fit:cover !important;object-position:top center !important}
.coa-lb-frame img,#coaLbImg{object-fit:contain !important;object-position:top center !important}
.coa-sample img,.coa-preview img,.coa-doc img,.sample-coa img{object-fit:cover !important;object-position:top center !important}
@media(max-width:640px){
  .trustsec .trustin{padding:22px 16px !important}
  .trustgrid{gap:10px !important}
  .trustcard{padding:14px 14px !important;border-radius:14px !important}
  .trusticon{width:32px !important;height:32px !important;font-size:16px !important;border-radius:9px !important;margin-bottom:10px !important}
  .trustcard h3{font-size:16px !important;margin:0 0 4px !important;line-height:1.25}
  .trustcard p{font-size:13.5px !important;line-height:1.45 !important;margin:0 !important}
  .trustsec .lbl{font-size:11px !important;margin-bottom:10px !important}
}
/* COA hero document: show the top of the certificate, never a mid-crop */
.hero-visual-stage img{object-fit:cover !important;object-position:top center !important}
@media(max-width:640px){ .hero-visual-stage{height:auto !important;min-height:0 !important;aspect-ratio:4/3 !important} .hero-visual-stage img{width:100% !important;height:100% !important} }

/* mobile hero v2: bigger animation, small chips pinned to the left/right edges */
@media(max-width:640px){
  html[data-division="peptides"] .stage{position:relative}
  html[data-division="peptides"] .visual{max-width:none !important;width:100% !important}
  html[data-division="peptides"] .chipgrid{position:absolute !important;inset:0 !important;display:block !important;width:auto !important;margin:0 !important;pointer-events:none;z-index:3}
  html[data-division="peptides"] .chipgrid .chip{position:absolute !important;pointer-events:auto;width:auto !important;max-width:118px;height:26px !important;min-height:26px !important;padding:0 8px !important;border-radius:999px !important;font-size:10.5px !important;gap:4px !important;background:rgba(230,232,235,.94) !important;box-shadow:0 4px 12px rgba(20,22,24,.14) !important;backdrop-filter:blur(4px)}
  html[data-division="peptides"] .chipgrid .chip small{font-size:9px !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(odd){left:0}
  html[data-division="peptides"] .chipgrid .chip:nth-child(even){right:0}
  html[data-division="peptides"] .chipgrid .chip:nth-child(1){top:6%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(2){top:14%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(3){top:32%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(4){top:40%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(5){top:58%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(6){top:66%}
  html[data-division="peptides"] .chipgrid .chip:nth-child(7){top:84%;left:50%;right:auto;transform:translateX(-50%)}
}
/* mobile hero v3: chips hug the sphere (anchored from the bottom of the stage where the sphere sits), names only */
@media(max-width:640px){
  html[data-division="peptides"] .chipgrid .chip{top:auto !important;max-width:150px;height:28px !important;min-height:28px !important;padding:0 10px !important;font-size:11px !important}
  html[data-division="peptides"] .chipgrid .chip small{display:none !important}
  html[data-division="peptides"] .chipgrid .chip .chip-nm{overflow:visible !important;text-overflow:clip !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(1){bottom:calc((100vw - 57px) * .86) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(2){bottom:calc((100vw - 57px) * .74) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(3){bottom:calc((100vw - 57px) * .58) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(4){bottom:calc((100vw - 57px) * .46) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(5){bottom:calc((100vw - 57px) * .30) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(6){bottom:calc((100vw - 57px) * .18) !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(7){bottom:calc((100vw - 57px) * .02) !important}
}
@media(max-width:640px){
  html[data-division="peptides"] .chipgrid .chip:nth-child(even){right:46px !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(odd){left:4px !important}
  html[data-division="peptides"] .chipgrid .chip:nth-child(7){bottom:calc((100vw - 57px) * .06) !important;left:50% !important;right:auto !important}
}

/* mobile hero v4: featured compounds move below the sphere as a simple 2-col grid */
@media(max-width:640px){
  html[data-division="peptides"] .chipgrid{position:static !important;inset:auto !important;display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;width:100% !important;margin:16px auto 0 !important;pointer-events:auto !important}
  html[data-division="peptides"] .chipgrid .chip{position:static !important;left:auto !important;right:auto !important;bottom:auto !important;top:auto !important;transform:none !important;width:auto !important;max-width:none !important;height:34px !important;min-height:34px !important;padding:0 12px !important;border-radius:10px !important;font-size:12.5px !important;background:var(--card-soft,#e6e8eb) !important;box-shadow:none !important;backdrop-filter:none !important;display:flex !important;align-items:center !important;justify-content:space-between !important}
  html[data-division="peptides"] .chipgrid .chip small{display:inline !important;font-size:10.5px !important}
  html[data-division="peptides"] .chipgrid .chip .chip-nm{overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important}
}

/* mobile hero v5: chip grid moves to the top (right under the "Featured compounds" badge),
   then headline/copy, stats, single centered CTA, then the sphere */
@media(max-width:640px){
  html[data-division="peptides"] .splash-wrap{display:flex !important;flex-direction:column !important}
  html[data-division="peptides"] .chipgrid{order:3 !important;margin:18px 0 0 !important}
  html[data-division="peptides"] .splash-copy{order:1 !important}
  html[data-division="peptides"] .visual{order:2 !important}
  html[data-division="peptides"] .ctarow{justify-content:center !important}
  html[data-division="peptides"] .ctarow .btn-pill{flex:0 1 auto !important;max-width:280px}
  html[data-division="peptides"] .hero-stats.hero-stats-static{justify-content:center !important;text-align:center}
}

/* v9: on phones the Featured compounds badge sits at the bottom, directly above the 8 chips */
@media(max-width:640px){
  html[data-division="peptides"] .splash-wrap .stage-fav-badge-wrap.is-bottom{order:3 !important;justify-content:center !important;padding:22px 0 10px !important;width:100%}
  html[data-division="peptides"] .chipgrid{order:4 !important;margin:0 !important}
}

/* v10: desktop sphere animation ~40% larger (chip orbit follows .ring2 automatically) */
@media(min-width:1001px){
  html[data-division="peptides"] .visual{height:min(820px,88vh)}
  html[data-division="peptides"] .ring{width:370px;height:370px}
  html[data-division="peptides"] .ring2{width:450px;height:450px}
  html[data-division="peptides"] .core{width:280px;height:280px}
  html[data-division="peptides"] .chip{width:136px;padding:12px 15px;font-size:13px;border-radius:18px}
  html[data-division="peptides"] .cc-name{font-size:24px}
}
/* v11: Featured compounds badge sits below the animation on tablet/desktop */
html[data-division="peptides"] .stage-fav-badge-wrap.is-below{justify-content:flex-end;padding:0 24px 22px}
