/* Mamba blog feed — latest posts from /blog, styled to the site's dark theme */
.mb-latest{background:#10150f;color:#eef4e9;padding:var(--section-space,88px) 0;border-top:1px solid #d1ff3f26}
.mb-latest__head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:24px;margin-bottom:40px}
.mb-latest__head h2{margin:8px 0 0;color:#fff;font-size:clamp(1.9rem,3.4vw,2.8rem);line-height:1.08;letter-spacing:-.03em;max-width:18ch}
.mb-latest__head p{margin:12px 0 0;color:#c5d2c0;max-width:52ch;line-height:1.65}
.mb-latest__eyebrow{font:500 .75rem 'DM Mono',monospace;letter-spacing:.12em;text-transform:uppercase;color:#d1ff3f}
.mb-latest__all{display:inline-flex;align-items:center;min-height:46px;padding:13px 22px;border:1px solid #d1ff3f;border-radius:100px;color:#d1ff3f;font-weight:800;font-size:.875rem;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.mb-latest__all:hover,.mb-latest__all:focus-visible{background:#d1ff3f;color:#091008}

.mb-feed{display:grid;gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mb-post{display:flex;flex-direction:column;min-width:0;background:#1e251c;border:1px solid #ffffff24;border-radius:13px;overflow:hidden;color:#fff;text-decoration:none;transition:border-color .2s,background .2s}
.mb-post:hover{border-color:#d1ff3f;background:#232c20}
.mb-post:focus-visible{outline:3px solid #d1ff3f;outline-offset:3px}
.mb-post__media{aspect-ratio:16/9;background:#141a12;overflow:hidden}
.mb-post__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.mb-post:hover .mb-post__media img{transform:scale(1.04)}
.mb-post__media--empty{background:radial-gradient(circle at 75% 20%,#2f4a18 0,transparent 55%),#141a12}
.mb-post__body{display:flex;flex-direction:column;flex:1;padding:24px}
.mb-post__cat{align-self:flex-start;margin-bottom:14px;padding:4px 10px;border-radius:100px;background:#d1ff3f1f;color:#d1ff3f;font:500 .72rem 'DM Mono',monospace;letter-spacing:.04em}
.mb-post__title{margin:0 0 12px;color:#fff;font-size:1.2rem;line-height:1.3;letter-spacing:-.01em}
.mb-post__excerpt{margin:0 0 18px;color:#c2d0bd;font-size:.95rem;line-height:1.65}
.mb-post__meta{display:flex;gap:14px;margin-top:auto;color:#9fae98;font-size:.8125rem}
.mb-post__go{margin-top:16px;color:#d1ff3f;font-weight:800;font-size:.875rem}

/* Insights page: newest post runs full width, image beside text */
.mb-feed--featured .mb-post--feature{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.mb-feed--featured .mb-post--feature .mb-post__media{aspect-ratio:auto;min-height:320px}
.mb-feed--featured .mb-post--feature .mb-post__body{padding:clamp(28px,4vw,48px);justify-content:center}
.mb-feed--featured .mb-post--feature .mb-post__title{font-size:clamp(1.6rem,2.6vw,2.2rem);line-height:1.15;letter-spacing:-.02em}
.mb-feed--featured .mb-post--feature .mb-post__excerpt{font-size:1.05rem}
.mb-feed--featured .mb-post--feature .mb-post__meta{margin-top:0}

/* Loading placeholders */
.mb-post--skeleton{min-height:360px;background:linear-gradient(100deg,#1a2118 30%,#232c20 50%,#1a2118 70%);background-size:300% 100%;animation:mb-shimmer 1.4s ease infinite}
.mb-feed--featured .mb-post--skeleton:first-child{grid-column:1/-1;min-height:320px}
@keyframes mb-shimmer{to{background-position:-150% 0}}
.mb-feed__empty{grid-column:1/-1;color:#c5d2c0}
.mb-feed__empty a{color:#d1ff3f;font-weight:800}

@media (max-width:980px){
  .mb-feed{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mb-feed--grid .mb-post:nth-child(3){display:none}
  .mb-feed--featured .mb-post--feature{grid-template-columns:1fr}
  .mb-feed--featured .mb-post--feature .mb-post__media{min-height:0;aspect-ratio:16/9}
}
@media (max-width:640px){
  .mb-feed{grid-template-columns:1fr}
  .mb-feed--grid .mb-post:nth-child(3){display:flex}
  .mb-latest__head{margin-bottom:28px}
}
@media (prefers-reduced-motion:reduce){
  .mb-post,.mb-post__media img{transition:none}
  .mb-post:hover .mb-post__media img{transform:none}
  .mb-post--skeleton{animation:none}
}
