/* Ecosystem page: layout only. Loads after reef.css and enterprise-pages.css.
   Colours are the --g-* paper ground tokens (plus --r-card for the spotlight card), spacing the --s-* scale.
   Type follows the secondary page scale: h1 from pages.css, h2 32px, panel h3 30px, lead 20px, body 16px,
   eyebrows Fragment Mono 16px. No text below 16px. */
.eco-page p{max-width:none}
.eco-page .eyebrow{margin:0}

/* Hero: heading beside the lead. */
body.secondary main section.eco-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-12);align-items:start;border-bottom:1px solid var(--g-line)}
.eco-hero-copy{max-width:52ch}
body.secondary main .eco-hero .eco-hero-copy>p.eco-lead{margin:0;font-size:20px;line-height:1.45;color:var(--g-body)}
body.secondary main .eco-hero .eco-hero-copy>p:not(.eco-lead){margin:var(--s-4) 0 0;font-size:16px;line-height:1.7;color:var(--g-body)}
.eco-hero-copy .text-link{display:inline-flex;align-items:center;min-height:44px;margin-top:var(--s-4)}

/* Spotlight: logo panel beside the card. */
.eco-featured{padding-top:var(--s-12)}
.eco-featured-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--s-2) var(--s-6);margin-bottom:var(--s-6)}
.secondary .eco-page .eco-featured h2{font-size:32px;line-height:1.15;letter-spacing:-.015em;margin:0}
.eco-spotlight{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);overflow:hidden;background:var(--r-card);border:1px solid var(--g-line);border-radius:var(--r-radius)}
.eco-cloudflare-brand{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:var(--s-6);min-width:0;padding:var(--s-6);background:var(--g-panel)}
.eco-brand-kicker,.eco-brand-caption{align-self:stretch;font:400 16px/1.5 var(--mono);color:var(--g-mute)}
.eco-cloudflare-brand img{width:220px;max-width:100%;height:auto;object-fit:contain;mix-blend-mode:multiply}
.eco-spotlight-content{display:flex;flex-direction:column;align-items:start;min-width:0;padding:var(--s-8)}
.secondary .eco-page .eco-spotlight h3{margin:var(--s-4) 0;font-size:30px;line-height:1.07;font-weight:400;letter-spacing:-.015em;color:var(--g-body)}
.eco-page .eco-spotlight-content>p:not(.eyebrow){margin:0 0 var(--s-6);font-size:16px;line-height:1.7;color:var(--g-body);max-width:65ch}
.eco-value-strip{display:flex;flex-wrap:wrap;gap:var(--s-2) var(--s-6);width:100%;margin:0 0 var(--s-4);padding:var(--s-4) 0 0;border-top:1px solid var(--g-line);font:400 16px/1.5 var(--mono);color:var(--g-body)}
.eco-value-strip span{position:relative}
.eco-value-strip span:not(:first-child)::before{content:"·";position:absolute;left:calc(-1 * var(--s-4));color:var(--g-mute)}
.eco-spotlight-content .text-link{display:inline-flex;align-items:center;min-height:44px;margin-top:auto}
.eco-page .eco-qualification{margin:var(--s-3) 0 0;font-size:16px;line-height:1.7;color:var(--g-mute);max-width:80ch}

/* Closing: the .ent-cta panel, heading beside the action. */
.eco-page .eco-cta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:var(--s-6) var(--s-12);margin-top:var(--s-12)}
.secondary .eco-page .eco-cta h2{margin-top:var(--s-4)}
.eco-cta>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s-4) var(--s-6)}
.eco-page .eco-cta>div:last-child p{flex:1 1 240px;margin:0;font-size:16px;line-height:1.7;color:var(--g-body)}

@media(max-width:900px){
 body.secondary main section.eco-hero{gap:var(--s-6)}
 .eco-spotlight-content{padding:var(--s-6)}
}
@media(max-width:760px){
 body.secondary main section.eco-hero{grid-template-columns:minmax(0,1fr);gap:var(--s-4)}
 body.secondary main .eco-hero .eco-hero-copy>p.eco-lead{font-size:18px}
 .eco-featured{padding-top:var(--s-8)}
 .secondary .eco-page .eco-featured h2{font-size:24px}
 .eco-spotlight{grid-template-columns:minmax(0,1fr)}
 .eco-cloudflare-brand{gap:var(--s-3);padding:var(--s-4)}
 .eco-cloudflare-brand img{width:168px}
 .eco-spotlight-content{padding:var(--s-6) var(--s-4)}
 .eco-value-strip{display:grid;gap:var(--s-1)}
 .eco-value-strip span:not(:first-child)::before{display:none}
 .secondary .eco-page .eco-spotlight h3{font-size:28px}
 .eco-page .eco-cta{grid-template-columns:minmax(0,1fr);margin-top:var(--s-8)}
 .eco-cta>div:last-child{display:block}
 .eco-page .eco-cta>div:last-child p{margin-bottom:var(--s-4)}
 .eco-cta .button.coral{width:100%;justify-content:center}
}
