/* DWT / Overview — Ecosystem section (Figma 4275:18372, 4275:15409, 4275:16409, 4275:17379).
   Only Views/WebTWAIN/Overview.cshtml links this file. */

.eco-section {
    /* Design keeps 64px top/bottom at 440, while .section-v resolves to 56px there. */
    padding-block: 4rem;
}

@media (min-width: 48rem) { /* 768px */
    .eco-section {
        padding-block: var(--space-xl);
    }
}

/* Tiled grid: the 1px gap paints the separators between cards, so the grid has
   no outer border — matching the design (inner lines only). */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background-color: var(--color-border-primary);
}

@media (min-width: 64rem) { /* 1024px */
    .eco-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.eco-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-white);
}

@media (min-width: 64rem) { /* 1024px */
    .eco-card {
        gap: 1.25rem;
        padding: 1.25rem;
    }
}

@media (min-width: 80rem) { /* 1280px */
    .eco-card {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* The artwork is exported on a transparent 379x168 canvas, so the radius stays
   12px at every breakpoint instead of scaling with the image. */
.eco-card-media {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    background-color: var(--color-bg-secondary);
}

.eco-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* The 1194 design frame fixes the intro paragraph at 890px so it wraps to two
   lines; every other breakpoint lets it fill the container. */
@media (min-width: 64rem) and (max-width: 79.999rem) { /* 1024px – 1279px */
    .eco-head-desc {
        max-width: 55.625rem;
        margin-inline: auto;
    }
}

.eco-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.eco-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-secondary);
    color: var(--color-fg-secondary);
    font-family: var(--font-inter);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.eco-tag .icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--color-fg-muted);
}

.eco-tag-success {
    background-color: rgb(0 184 70 / 0.1);
    color: #008236;
}
