/* Global module - Law Table (jurisdiction, law or code, date in force) */
.el-ltbl-head {
    max-width: 820px;
    margin: 0 auto clamp(32px, calc(32px + 16 * (100vw - 1280px) / 640), 48px);
    text-align: center;
}

.el-ltbl-title {
    margin: 0 0 18px;
}

.el-ltbl-text {
    margin: 0;
    font-size: clamp(17px, calc(17px + 2 * (100vw - 1280px) / 640), 19px);
    color: var(--el-color-muted);
}

/* Review note pill, e.g. "Legal content: review before publishing" */
.el-ltbl-flag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fce6da;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8f3a18;
}

.el-ltbl-head .el-ltbl-flag {
    margin-top: 20px;
}

td .el-ltbl-flag {
    display: table;
    margin-top: 8px;
}

.el-ltbl-card {
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: clamp(20px, 1.4vw, 24px);
    background: var(--el-color-white);
}

.el-ltbl-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

.el-ltbl-table th:nth-child(1) { width: 24%; }
.el-ltbl-table th:nth-child(2) { width: 46%; }

.el-ltbl-table thead th {
    padding: 18px clamp(16px, 1.6vw, 28px);
    background: var(--el-color-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--el-color-blue-dark);
}

.el-ltbl-table tbody th,
.el-ltbl-table tbody td {
    padding: 22px clamp(16px, 1.6vw, 28px);
    border-top: 1px solid #dce5ea;
    font-size: clamp(15px, calc(15px + 2 * (100vw - 1280px) / 640), 17px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--el-color-text);
    vertical-align: top;
}

.el-ltbl-table tbody tr {
    transition: background-color var(--el-transition);
}

.el-ltbl-table tbody tr:hover {
    background: #f6f9fb;
}

.el-ltbl-place {
    display: block;
    font-family: var(--el-font-heading);
    font-size: clamp(19px, calc(19px + 3 * (100vw - 1280px) / 640), 22px);
    line-height: 1.3;
    color: var(--el-color-blue-dark);
}

.el-ltbl-short {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--el-color-muted);
}

.el-ltbl-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 20px clamp(16px, 1.6vw, 28px);
    border-top: 1px solid #dce5ea;
    background: #f6f9fb;
    font-size: 14px;
    color: var(--el-color-muted);
}

.el-ltbl-note svg {
    flex: none;
    margin-top: 2px;
    color: var(--el-color-blue-dark);
}

/* Phones: each row becomes a block, cells stack with their column name. */
@media (max-width: 767px) {
    .el-ltbl-table,
    .el-ltbl-table tbody,
    .el-ltbl-table tr,
    .el-ltbl-table th,
    .el-ltbl-table td {
        display: block;
        width: auto !important;
    }

    .el-ltbl-table thead {
        display: none;
    }

    .el-ltbl-table tbody tr {
        padding: 20px;
        border-top: 1px solid #dce5ea;
    }

    .el-ltbl-table tbody tr:first-child {
        border-top: 0;
    }

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

    .el-ltbl-table tbody td {
        margin-top: 12px;
    }

    .el-ltbl-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--el-color-muted);
    }
}
