/* A colla's estrena of a castell (/colles/{id}/castells/{slug}), on the styles of a castell's page */

.eco-capcalera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.eco-titol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.8rem;
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    color: var(--color-black);

    @media (width < 36rem) {
        font-size: 1.4rem;
    }
}

.eco-castell {
    padding: 0.45rem 1.1rem;
    border-radius: 0.9rem;
    background-color: var(--grup);
    color: var(--grup-text);
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.15), inset 0 0 0 1px rgb(0 0 0 / 0.08);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    &:hover {
        filter: brightness(0.95);
    }

    @media (width < 36rem) {
        font-size: 2rem;
    }
}

/* The actuació of the estrena, as the calendar shows a diada */

.eco-diada-info {
    margin-bottom: 1rem;

    .eco-diada-nom {
        display: block;
        width: fit-content;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--color-black);
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

/* The estrena's cell in the colour of its castell, as its chip in the title; beats the table's own cells */
.eco-actuacio .edicio-table td.castell-cell-destacada {
    background-color: var(--grup);
    color: var(--grup-text);
    font-weight: 700;
}


/* The castell page's who did it, story and every time, the colla marked */

.eco .eco-destacada {
    background: rgb(0 0 0 / 0.045);
    font-weight: 700;
}

.eco .ec-fet.eco-destacada {
    border-radius: 0.4rem;
}

/* Its diada's photos and videos (SeccioEdicio), as wide as the page */

.eco-seccions {
    width: 100%;
    max-width: 76rem;
    margin: 0 auto;
}
