/* /ecosystem: how Browsa's pieces fit, for an agent developer deciding where to start. A hero, one map (your agent,
   what it connects with, the three places the pieces run), then one ds-spec row per piece and the closing call.
   Also loaded by the home page for its four-tile ecosystem strip (.eco-tiles). */

/* Hero */
.eco-hero .dv-hero__copy { gap: var(--ds-space-4); }
.eco-hero .dv-hero__title { max-width: 18ch; text-wrap: balance; }
.eco-hero .dv-hero__actions { margin-top: var(--ds-space-2); }

/* The map */
.eco-map { display: grid; gap: var(--ds-space-3); margin: 0; padding: clamp(1rem, 0.6rem + 1.6vw, 1.75rem); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius-lg); background: var(--lp-surface); box-shadow: var(--lp-shadow); }
.eco-map__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2) var(--ds-space-4); padding: var(--ds-space-3) var(--ds-space-4); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface-2); box-shadow: inset 0 1px 0 var(--lp-shine); }
.eco-map__row + .eco-map__row::before, .eco-map__lanes::before { content: ""; position: absolute; top: calc(-1 * var(--ds-space-3) - 1px); inset-inline-start: 2rem; width: 1px; height: var(--ds-space-3); background: var(--lp-edge-2); }
.eco-map__label { flex: none; min-width: 7.5rem; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }
.eco-map__chips { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.eco-map__chips li { display: inline-flex; align-items: center; min-height: 1.875rem; padding: 0.25rem 0.625rem; border: 1px solid var(--lp-edge-2); border-radius: var(--ds-radius-sm); font-size: var(--ds-text-sm); line-height: 1.3; color: var(--ds-ink-2); }
.eco-map__chips a { color: var(--ds-ink); text-decoration: none; }
.eco-map__chips a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eco-map__lanes { position: relative; display: grid; gap: var(--ds-space-3); }
@media (min-width: 56rem) { .eco-map__lanes { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr); } }
.eco-map__lane { display: grid; align-content: start; gap: var(--ds-space-3); padding: var(--ds-space-4); border: 1px solid var(--lp-edge); border-radius: var(--lp-radius); background: var(--lp-surface-2); box-shadow: inset 0 1px 0 var(--lp-shine); }
.eco-map__lane .eco-map__label { min-width: 0; }
.eco-map__title { justify-self: start; font: 600 var(--ds-text-h4)/1.3 var(--ds-font-text); color: var(--ds-ink); text-decoration: none; }
.eco-map__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.eco-map__sub { display: grid; gap: 0.125rem; padding: var(--ds-space-3) var(--ds-space-4); border: 1px dashed var(--lp-edge-2); border-radius: var(--ds-radius-md); color: var(--ds-ink); text-decoration: none; }
.eco-map__sub b { font-weight: 600; }
.eco-map__sub span { font-size: var(--ds-text-sm); color: var(--ds-ink-3); }
.eco-map__sub:hover b { text-decoration: underline; text-underline-offset: 3px; }
.eco-map__note { margin: 0; font-size: var(--ds-text-sm); color: var(--ds-ink-3); }

/* The rows: ds-spec, with the name as an h2 and the proof a short command */
.eco-spec .ds-spec__row { scroll-margin-top: 5rem; }
.eco-spec .ds-spec__name .ds-h3 { display: flex; align-items: center; gap: var(--ds-space-3); }
.eco-spec .ds-spec__name p { max-width: 34rem; }
.eco-spec .ds-spec__links { display: flex; flex-wrap: wrap; gap: var(--ds-space-1) var(--ds-space-5); margin-top: var(--ds-space-3); }
.eco-spec .ds-spec__links .ds-link { margin: 0; }
.eco-spec .ds-spec__facts a { color: var(--ds-ink-2); text-decoration-color: var(--ds-line-control); text-underline-offset: 3px; }
.eco-spec .ds-spec__facts dt a { color: var(--ds-ink); }
.eco-spec .ds-spec__proof { min-width: 0; }
.eco-spec .ds-spec__proof pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Home page: the four pillars, one row on wide screens */
@media (min-width: 1000px) { .lp-tiles.eco-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.eco-tiles .lp-tile { align-items: start; align-content: start; }
