/* ==========================================================================
   Сводный список участников конкурса. Оформление страницы тем (topics.css),
   три колонки: номер заявки, статус, тема проекта.
   ========================================================================== */

.page-list {
    --list-num: 220px;
    --list-status: 300px;
}

.list__title {
    margin-bottom: 35.72px;
}

.list__card {
    margin-bottom: 104.5px;
}

.list__head {
    display: grid;
    grid-template-columns: var(--list-num) var(--list-status) minmax(0, 1fr);
    gap: 0;
    width: 100%;
}

.list__head .topics__chip {
    width: calc(100% - 30px);
}

.list__head .topics__chip:last-child {
    width: 100%;
}

.list__head .topics__chip--blue:hover {
    filter: none;
}

.list__rule,
.list__scroll {
    width: 100%;
}

.list__rule::before {
    width: var(--list-num);
}

.list__col-num {
    width: var(--list-num);
}

.list__col-status {
    width: var(--list-status);
}

.list__table .topics__num {
    width: auto;
}

.list__status {
    border-right: 1px solid #d6d6d6;
    padding-left: 24px;
}

@media (max-width: 1279px) {
    .page-list {
        --list-num: 200px;
        --list-status: 280px;
    }

    .list__head .topics__chip {
        white-space: nowrap;
        padding: 5px 16px;
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .list__title {
        margin-bottom: 24px;
    }

    .list__card {
        margin-bottom: 56px;
    }

    .list__head {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .list__head .topics__chip,
    .list__head .topics__chip:last-child {
        width: 100%;
    }

    .list__rule::before {
        width: 40%;
    }

    /* строка таблицы перестраивается в карточку: номер и статус, ниже тема */
    .list__table,
    .list__table tbody,
    .list__table tr,
    .list__table td {
        display: block;
    }

    .list__table colgroup {
        display: none;
    }

    .list__table tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        border-bottom: 1px solid #d6d6d6;
    }

    .list__table td {
        border-bottom: 0;
    }

    .list__table .topics__num {
        width: auto;
        padding: 12px 10px 4px 0;
        border-right: 0;
        text-align: left;
    }

    .list__status {
        padding: 12px 0 4px 10px;
        border-right: 0;
        font-size: 14px;
    }

    .list__table .topics__text {
        grid-column: 1 / -1;
        padding: 0 0 12px;
    }
}
