.ecosystem-page {
    padding-bottom: 5rem;
    color: #183b47;
}

.ecosystem-hero {
    padding: 2.75rem 0;
    color: #fff;
    background: linear-gradient(125deg, #0a5963, #0c8580);
}

.ecosystem-hero h1 {
    margin: .75rem 0 1rem;
    color: inherit;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

.ecosystem-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1.15rem;
    line-height: 1.7;
}

.ecosystem-eyebrow {
    color: #a7e7dc;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ecosystem-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.25rem;
    padding-top: 2.25rem;
}

.ecosystem-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 180px;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid #e1eeee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 34px rgba(18, 70, 79, .07);
}

.ecosystem-card__content {
    grid-column: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.ecosystem-card__logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
}

.ecosystem-card__content h2,
.ecosystem-copy h2,
.ecosystem-values h2 {
    margin: 0 0 .8rem;
    color: #124b55;
    font-weight: 750;
}

.ecosystem-card__content h2 {
    min-height: 2.6em;
    margin-bottom: .25rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.ecosystem-card__content h2 a {
    color: inherit;
    text-decoration: none;
}

.ecosystem-card__content p,
.ecosystem-copy p,
.ecosystem-values p {
    color: #50676d;
    line-height: 1.75;
    white-space: pre-line;
}

.ecosystem-card__content p {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 .35rem;
    overflow: hidden;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ecosystem-card__link {
    display: inline-block;
    margin-top: .15rem;
    color: #087b78;
    font-weight: 700;
    text-decoration: none;
}

.ecosystem-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    color: #60757b;
    text-align: center;
}

.ecosystem-detail__hero {
    position: relative;
}

.ecosystem-back {
    display: block;
    margin-bottom: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.ecosystem-detail__identity {
    display: grid;
    grid-template-columns: clamp(100px, 12vw, 144px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
}

.ecosystem-detail__identity--has-link {
    grid-template-columns: clamp(100px, 12vw, 144px) minmax(0, 1fr) auto;
}

.ecosystem-detail__logo-wrap {
    display: flex;
    width: clamp(100px, 12vw, 144px);
    height: clamp(100px, 12vw, 144px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .12);
}

.ecosystem-detail__logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ecosystem-detail__logo-placeholder {
    color: rgba(255, 255, 255, .9);
    font-size: 3rem;
}

.ecosystem-detail__identity-copy {
    min-width: 0;
}

.ecosystem-detail__identity-copy h1 {
    margin-top: .5rem;
    overflow-wrap: anywhere;
}

.ecosystem-detail__identity-copy p {
    max-width: 760px;
    margin-top: .25rem;
}

.ecosystem-detail__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .65rem;
}

.ecosystem-project-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin: 0;
    padding: .65rem 1rem;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: .65rem;
    color: #07565d;
    background: #fff;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ecosystem-project-link:hover {
    color: #07565d;
    box-shadow: 0 8px 20px rgba(4, 45, 51, .2);
    text-decoration: none;
    transform: translateY(-1px);
}

.ecosystem-detail__content {
    display: grid;
    gap: 2rem;
    padding-top: 3rem;
}

.ecosystem-copy,
.ecosystem-values article {
    padding: 1.75rem;
    border: 1px solid #e1eeee;
    border-radius: 1rem;
    background: #fff;
}

.ecosystem-details {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid #dceaea;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff, #f8fbfb);
    box-shadow: 0 12px 34px rgba(18, 70, 79, .05);
}

.ecosystem-details > h2 {
    margin: 0 0 1.25rem;
    color: #124b55;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.ecosystem-details__intro {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.4rem;
    border-left: 4px solid #0c8580;
    border-radius: .5rem;
    background: #edf7f6;
}

.ecosystem-details__intro span,
.ecosystem-details__section {
    display: block;
    margin-bottom: .45rem;
    color: #087b78;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ecosystem-details__intro p,
.ecosystem-details__item p {
    margin: 0;
    color: #50676d;
    line-height: 1.75;
    white-space: pre-line;
}

.ecosystem-details__groups {
    display: grid;
    gap: 1.5rem;
}

.ecosystem-details__group {
    min-width: 0;
}

.ecosystem-details__section {
    margin: 0 0 .75rem;
    color: #087b78;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ecosystem-details__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.ecosystem-details__item {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #e1eeee;
    border-radius: .8rem;
    background: #fff;
}

.ecosystem-details__item h4 {
    margin: 0 0 .65rem;
    color: #124b55;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ecosystem-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.ecosystem-gallery {
    padding-top: 2rem;
}

.ecosystem-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px));
    gap: 1rem;
    justify-content: center;
}

.ecosystem-gallery__item {
    display: flex;
    min-width: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e1eeee;
    border-radius: .75rem;
    background: #f4f8f8;
}

.ecosystem-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 575px) {
    .ecosystem-hero {
        padding: 2rem 0;
    }

    .ecosystem-card {
        grid-template-columns: 56px minmax(0, 1fr);
        min-height: 150px;
        gap: .85rem;
        padding: 1rem;
    }

    .ecosystem-card__content {
        grid-column: 2;
        width: 100%;
    }

    .ecosystem-card__logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .ecosystem-detail__identity,
    .ecosystem-detail__identity--has-link {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
    }

    .ecosystem-detail__logo-wrap {
        width: 72px;
        height: 72px;
        min-width: 0;
        padding: .6rem;
        border-radius: .75rem;
    }

    .ecosystem-detail__logo-placeholder {
        font-size: 2rem;
    }

    .ecosystem-detail__identity-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        overflow-wrap: anywhere;
    }

    .ecosystem-detail__identity-copy p {
        font-size: .98rem;
    }

    .ecosystem-project-link {
        justify-self: start;
    }

    .ecosystem-detail__actions {
        grid-column: 2;
        align-items: flex-start;
    }

}
