/* Programme page - How It Runs: title on the left, 2-column table on the right. */
.el-prog-format[id] {
    scroll-margin-top: 24px;
}

.el-prog-format.is-bg-white {
    background: var(--el-color-white);
}

.el-prog-format.is-bg-tint {
    background: var(--el-color-light);
}

.el-prog-format-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, calc(48px + 32 * (100vw - 1280px) / 640), 80px);
    align-items: start;
}

.el-prog-format h2 {
    margin: 0;
}

.el-prog-format-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #cbd6e2;
}

.el-prog-format-table thead th {
    padding: 14px 0;
    border-bottom: 1px solid #cbd6e2;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
    color: var(--el-color-muted);
}

.el-prog-format-table tbody th,
.el-prog-format-table td {
    padding: clamp(20px, 1.4vw, 26px) 0;
    border-bottom: 1px solid #d8e1ea;
    text-align: left;
    vertical-align: top;
}

.el-prog-format-table th:first-child {
    width: clamp(170px, 12vw, 230px);
    padding-right: 24px;
}

.el-prog-format-table tbody th {
    font-family: var(--el-font-heading);
    font-size: clamp(20px, calc(20px + 4 * (100vw - 1280px) / 640), 24px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--el-color-heading);
}

.el-prog-format-table td {
    font-size: clamp(17px, calc(17px + 2 * (100vw - 1280px) / 640), 19px);
    line-height: 1.6;
    color: var(--el-color-muted);
}

/* Review pill, e.g. "TBC" (empty on live). */
.el-prog-flag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fdeee6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #a8461b;
    vertical-align: 2px;
}

@media (max-width: 991px) {
    .el-prog-format-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

/* Phones: rows stack (label above value). */
@media (max-width: 575px) {
    .el-prog-format-table thead {
        display: none;
    }

    .el-prog-format-table,
    .el-prog-format-table tbody,
    .el-prog-format-table tr,
    .el-prog-format-table th,
    .el-prog-format-table td {
        display: block;
        width: auto;
    }

    .el-prog-format-table tr {
        padding: 18px 0;
        border-bottom: 1px solid #d8e1ea;
    }

    .el-prog-format-table tbody th,
    .el-prog-format-table td {
        padding: 0;
        border: 0;
    }

    .el-prog-format-table td {
        margin-top: 6px;
    }
}
