/* Arazzo Ecosystem registry (/ecosystem/ only; loaded via the page's `stylesheets` front matter) */

/* Full-width bands: hero gradient on top, then sections alternate white / tint */
.ecosystem-hero {
    background: linear-gradient(135deg, #F0F5E7 0%, #FFFFFF 100%);
}

.ecosystem-band-tint {
    background: #F0F5E7;
}

/* Resource lists: one card per entry, two columns on wide screens */
.ecosystem-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .ecosystem-list {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
}

.ecosystem-list > li {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
}

.ecosystem-list a {
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: underline;
}

.ecosystem-list a:hover {
    text-decoration: none;
}

.ecosystem-list small {
    display: block;
    color: #6B7280;
    margin-top: 0.25rem;
}

.ecosystem-list .note {
    display: block;
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Grouped lists (tools, spec) */
.ecosystem-group {
    margin-bottom: 2.5rem;
}

.ecosystem-group h3 {
    color: var(--color-primary-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Thumbnail preview (infographics, posters): cropped teaser at the top of the card,
   wrapped in a link to the same destination as the title */
.ecosystem-thumb-link {
    display: block;
    order: -1;
    margin-bottom: 0.875rem;
    transition: opacity 0.2s ease;
}

.ecosystem-thumb-link:hover {
    opacity: 0.9;
}

.ecosystem-thumb {
    display: block;
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    object-position: top;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
}

/* Sticky "Submit a resource" button (Material-style extended FAB), so the CTA that's
   otherwise just a small text link in the hero stays reachable while scrolling. */
.ecosystem-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary-dark);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.875rem 1.375rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(23, 33, 13, 0.35), 0 2px 4px rgba(23, 33, 13, 0.25);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ecosystem-fab:hover {
    background-color: #2A3A18;
    box-shadow: 0 6px 16px rgba(23, 33, 13, 0.4), 0 3px 6px rgba(23, 33, 13, 0.3);
    transform: translateY(-2px);
}

.ecosystem-fab:active {
    transform: translateY(0);
}

.ecosystem-fab:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.ecosystem-fab svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* Collapse to an icon-only circle on narrow screens so it doesn't crowd the page */
@media (max-width: 480px) {
    .ecosystem-fab span {
        display: none;
    }

    .ecosystem-fab {
        padding: 0.875rem;
    }
}

/* Embedded YouTube player (privacy-enhanced youtube-nocookie.com).
   Reordered to the top of its card via CSS; the HTML entry format is unchanged. */
.ecosystem-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0.5rem;
    order: -1;
    margin-bottom: 0.875rem;
}
