/* Ecosystem partners (4.29.4).
   Logo cards on the light band, a category filter above them, a three-up
   "how it fits" band on dark, then the standard final banner. Logos come from
   hre-logos.css (.lgm-*), enqueued for this key in functions.php. */

.eco .band-h{margin-bottom:8px}

/* ---- filter ---- */
.eco-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:6px auto 40px;max-width:1040px}
.eco-filter button{font-family:'Sora',sans-serif;font-size:13.5px;font-weight:600;color:var(--l-ink);
  background:#fff;border:1px solid var(--l-line);border-radius:999px;padding:10px 16px;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;transition:border-color .2s,background .2s,color .2s}
.eco-filter button span{font-size:11.5px;font-weight:700;color:var(--l-muted);background:var(--l-bg);
  border-radius:999px;padding:2px 8px;min-width:22px;text-align:center}
.eco-filter button:hover{border-color:#CFC6C0}
.eco-filter button.on{background:var(--l-ink);border-color:var(--l-ink);color:#fff}
.eco-filter button.on span{background:rgba(255,255,255,.16);color:#fff}
.eco-filter button:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* ---- cards ---- */
.eco-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.eco-card{background:#fff;border:1px solid var(--l-line);border-radius:18px;padding:24px 22px 22px;
  display:flex;flex-direction:column;scroll-margin-top:110px;
  transition:border-color .2s,box-shadow .2s,transform .2s}
.eco-card:hover{border-color:#D9D0CA;box-shadow:0 18px 40px -26px rgba(40,28,24,.35);transform:translateY(-2px)}
.eco-card[hidden]{display:none}
.eco-card.eco-hit{border-color:var(--red);box-shadow:0 0 0 3px rgba(228,58,63,.14)}
.eco-logo{height:64px;display:flex;align-items:center;justify-content:flex-start;
  border-bottom:1px solid var(--l-line);margin-bottom:16px;padding-bottom:16px;box-sizing:content-box}
.eco-logo .lgm{max-width:100%;background-position:left center}
.eco-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.eco-cat,.eco-tag{font-family:'Sora',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;border-radius:999px;padding:4px 9px}
.eco-cat{color:#B24A2E;background:#FBEDE8}
.eco-tag{color:var(--l-muted);background:var(--l-bg)}
.eco-card h3{font-size:19px;font-weight:700;margin:2px 0 8px;color:var(--l-ink)}
.eco-card p{font-size:14.5px;line-height:1.55;color:var(--l-muted);margin:0 0 18px;flex:1}
.eco-go{font-family:'Sora',sans-serif;font-size:13px;font-weight:600;color:var(--red-2);text-decoration:none;
  align-self:flex-start;border-bottom:1px solid transparent}
.eco-go:hover{border-bottom-color:currentColor}

/* ---- how it fits ---- */
.eco-how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:34px}
.eco-how-c{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px 26px}
.eco-how-c b{font-family:'Sora',sans-serif;font-size:12px;letter-spacing:.16em;color:#FF7A5C}
.eco-how-c h4{font-size:20px;margin:12px 0 10px;color:var(--ink)}
.eco-how-c p{font-size:15px;line-height:1.6;color:var(--muted);margin:0 0 16px}
.eco-how-c a{font-family:'Sora',sans-serif;font-size:13.5px;font-weight:600;color:#FF8A6E;text-decoration:none}
.eco-how-c a:hover{text-decoration:underline}

@media (max-width:1100px){.eco-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.eco-how-grid{grid-template-columns:1fr}}
@media (max-width:560px){
  .eco-grid{grid-template-columns:1fr}
  .eco-filter{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;
    padding:2px 16px 6px;scrollbar-width:none}
  .eco-filter::-webkit-scrollbar{display:none}
  .eco-filter button{flex:none}
}
