.colla-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;

    h2 {
        font-size: 1.25rem;
        color: var(--color-secondary);
    }

    .colla-inactive-warning {
        font-style: italic;
        color: var(--color-gray-darker);
    }

    .colla-header {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 1.5rem;

        @media (width >= 80rem /* var(--two-columns-breakpoint) */) {
            align-items: unset;
        }

        @media (width >= 80rem) {
            flex-direction: row-reverse;
            justify-content: space-between;
            gap: unset;
        }

        .colla-escut {
            img {
                width: 6rem;
                height: 6rem;
                object-fit: contain;
            }
        }

        .colla-info {
            .colla-name {
                display: flex;
                align-items: stretch;
                margin-bottom: 1rem;
                gap: 0.75rem;

                div {
                    align-self: stretch;
                    width: 0.65rem;
                    border-radius: 0.75rem;
                }

                h1 {
                    align-self: center;
                    font-size: 1.75rem;
                    font-weight: 700;
                    margin: 0;
                }
            }

            .colla-fundada {
                font-size: 1rem;
                color: var(--color-gray-darker);
                margin-bottom: 0.5rem;
            }

            .colla-address {
                margin-left: 1rem;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                font-weight: 500;
            }
        }
    }

    .colla-properes-diades {
        --propera-diada-card-width: 200px;

        .cap-mes-diada {
            color: var(--color-gray-darker);
            font-style: italic;
            margin: 0;
        }

        .properes-diades-carousel-wrap {
            padding: 0 0.5rem;

            @media (width >= 1200px /* var(--nav-breakpoint) */) {
                padding: 0;
            }

            .properes-diades-carousel {
                display: flex;
                gap: 1rem;
                overflow-x: auto;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
                scroll-behavior: smooth;
                scroll-snap-type: x mandatory;
                padding: 0.5rem;
                margin: -0.5rem;

                .propera-diada-card {
                    background: var(--color-white);
                    padding: 1rem;
                    border-radius: 8px;
                    text-align: center;
                    box-shadow: var(--shadow-sm);
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 1rem;
                    flex: 0 0 auto;
                    width: var(--propera-diada-card-width);
                    scroll-snap-align: start;
                    color: var(--color-black);
                    text-decoration: none;

                    .propera-diada-date {
                        font-size: 0.8rem;
                        font-weight: 600;
                        margin: 0;
                    }

                    .propera-diada-name {
                        font-size: 0.95rem;
                        font-weight: 700;
                        line-height: 1.2;
                        margin: 0;
                    }

                    .propera-diada-time {
                        color: var(--color-gray-darker);
                        font-size: 0.85rem;
                        margin: 0;

                        &.propera-diada-time-unknown {
                            font-style: italic;
                            font-weight: 300;
                        }
                    }
                }
            }
        }
    }

    .colla-eix {
        --colla-eix-year-size: 0.5rem;

        .colla-eix-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;

            .colla-eix-name,
            .colla-eix-year {
                margin-bottom: 0.25rem;
            }

            .colla-eix-name {
                font-style: italic;
            }

            .colla-eix-year {
                font-size: 0.85rem;
                color: var(--color-gray-darker);
            }

            .colla-eix-period-wrap {
                width: var(--colla-eix-year-size);
                border-radius: 99999px;
                overflow: hidden;
                box-shadow: var(--shadow-sm);

                .colla-eix-single-year {
                    height: var(--colla-eix-year-size);
                }
            }

            .colla-eix-until {
                margin: 0.25rem 0 0;
                text-transform: lowercase;
            }
        }
    }
}

.sidebar-stats {
    > h2 {
        font-size: 1.15rem;
        font-weight: 400;
        border-bottom: 2px solid var(--color-gray-light);
        padding-bottom: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-stats-list {
        display: flex;
        flex-direction: column;
        gap: 2rem;

        .sidebar-stats-section {
            .sidebar-stats-header {
                > h3 {
                    font-size: 0.95rem;
                    font-weight: 500;
                    margin-bottom: 0.5rem;
                }
            }

            .sidebar-stats-section-card {
                background-color: var(--color-white);
                padding: 0.75rem;
                border-radius: 0.5rem;
                box-shadow: var(--shadow-sm);

                .sidebar-stats-section-card-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    margin-bottom: 0.5rem;
                    gap: 1rem;

                    > h4 {
                        font-size: 0.85rem;
                        margin: 0;
                        line-height: 1.25;

                        a {
                            color: var(--color-black);
                            text-decoration: none;

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

                .sidebar-stats-rondes-list {
                    display: flex;
                    gap: 0.75rem;
                    flex-wrap: wrap;
                    font-size: 0.85rem;
                    margin-bottom: 0.75rem;

                    .sidebar-stats-ronda {
                        display: flex;
                        align-items: center;
                        gap: 0.25rem;

                        * {
                            line-height: 1;
                        }

                        .castell {
                            color: var(--color-gray-darkest);
                        }

                        .result {
                            padding: 0.15rem 0.25rem;
                            border-radius: 0.25rem;

                            &.result-d {
                                background-color: var(--color-castell-d);
                                color: var(--color-castell-d-dark);
                                border-color: var(--color-castell-d-dark);
                            }

                            &.result-c {
                                background-color: var(--color-castell-c);
                                color: var(--color-castell-c-dark);
                                border-color: var(--color-castell-c-dark);
                            }
                        }
                    }
                }

                .sidebar-stats-diada-info {
                    font-size: 0.75rem;
                    color: var(--color-gray-darker);
                    margin: 0;
                }

                .sidebar-stats-diades-table {
                    width: 100%;
                    font-size: 0.85rem;
                    border-collapse: collapse;

                    tbody {
                        tr {
                            vertical-align: middle;

                            td {
                                &:first-child {
                                    font-size: 0.75rem;

                                    a {
                                        color: var(--color-black);
                                        text-decoration: none;

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

                                &:last-child {
                                    text-align: right;
                                    font-weight: 600;
                                    padding-left: 0.5rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

