/* Лише таблиця правового блоку; панель, типографіка й теми — від /disciplines. */
.lp-lead {
    margin: 0 0 18px;
    color: #1d1a15;
    font: 500 13px/1.6 var(--fb);
    overflow-wrap: anywhere;
}
.lp-table-wrap { max-width: 100%; }
.lp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.lp-table :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: #1d1a15;
    text-align: left;
    vertical-align: top;
    font: 500 13px/1.55 var(--fb);
    overflow-wrap: anywhere;
}
.lp-table th {
    color: var(--mu);
    font-weight: 700;
    background: var(--sh);
}
.lp-table th:last-child { width: 26%; }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}
.lp-table a:hover,
.lp-table a:focus-visible { color: var(--blue, #0b5fd1); }
:root[data-theme="dark"] .lp-table a:hover,
:root[data-theme="dark"] .lp-table a:focus-visible { color: #3ee8e4; }
:root[data-theme="ivory"] .lp-table a:hover,
:root[data-theme="ivory"] .lp-table a:focus-visible { color: #8a6212; }
.lp-tag {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #3a2f1a1f;
    border-radius: 999px;
    background: #3a2f1a12;
    color: #5b5240;
    font: 500 12px/1.3 var(--fb);
}
:root[data-theme="dark"] .lp-tag { border-color: #3ee8e426; background: #3ee8e412; color: #93b5ba; }
:root[data-theme="ivory"] .lp-tag { border-color: #3a2f1a1f; background: #3a2f1a12; color: #625a4b; }

@media (max-width: 700px) {
    .lp-table,
    .lp-table tbody { display: block; width: 100%; }
    .lp-table thead { display: none; }
    .lp-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }
    .lp-table tbody tr:last-child { border-bottom: 0; }
    .lp-table :is(th, td) { padding: 0; border: 0; }
}
