/* A2, approved 2026-11-25. Intrinsic column widths with 40px padding per side. */
:is(figure.ddqx-lesson-table,.ddqx-compare-surface) {
    --lt-ink: #104a56;
    --lt-body: #f8fbfa;
    --lt-head: #104a56;
    --lt-head-ink: #fff;
    --lt-muted: #305c64;
    --lt-grid: #ae903b;
    --lt-head-grid: var(--lt-grid);
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) figure.ddqx-lesson-table {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px 0 28px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
}
html[data-ddqx-theme="dark"] :is(figure.ddqx-lesson-table,.ddqx-compare-surface) {
    --lt-ink: #f3f8f8;
    --lt-body: #10434d;
    --lt-head: #eff8f7;
    --lt-head-ink: #104a56;
    --lt-muted: #b8d4d7;
    --lt-grid: #c4a758;
    --lt-head-grid: #886e24;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) figure.ddqx-lesson-table > .ddqx-table-caption {
    display: flex !important;
    align-items: baseline;
    gap: .65em;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--lt-muted) !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    font: 400 14px/1.4 Bahnschrift, "Segoe UI", Arial, sans-serif !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-caption > strong {
    flex: none;
    color: var(--lt-ink) !important;
    font-weight: 700 !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-caption > span { min-width: 0; }
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--lt-grid) !important;
    border-radius: 9px !important;
    background: var(--lt-body);
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame:focus-visible {
    outline: 3px solid var(--lt-ink);
    outline-offset: 2px;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame > table.ddqx-data-table {
    display: table !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 0 !important;
    background: var(--lt-body) !important;
    font-variant-numeric: tabular-nums lining-nums;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) table.ddqx-data-table :is(thead, tbody, tfoot, tr) {
    border: 0 !important;
    background: transparent !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table :is(th,td) {
    box-sizing: border-box;
    width: auto !important;
    padding: 13px 40px !important;
    border: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
    text-transform: none !important;
    overflow-wrap: normal;
    color: var(--lt-ink) !important;
    background: var(--lt-body) !important;
    font: 350 14.5px/1.4 Bahnschrift, "Segoe UI", Arial, sans-serif !important;
    font-variant-numeric: tabular-nums lining-nums !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table :is(thead,.ddqx-data-heading) :is(th,td) {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--lt-head-ink) !important;
    background: var(--lt-head) !important;
    border-bottom: 1px solid var(--lt-grid) !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table tr > :is(th,td) + :is(th,td) {
    border-left: 1px solid var(--lt-grid) !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table :is(thead tr,tr.ddqx-data-heading) > :is(th,td) + :is(th,td) {
    border-left-color: var(--lt-head-grid) !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table :is(tbody,tfoot) tr + tr > :is(th,td),
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-frame table.ddqx-data-table tfoot tr:first-child > :is(th,td) {
    border-top: 1px solid var(--lt-grid) !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-data-table .ddqx-table-unit {
    font: inherit;
    font-size: .95em;
    color: var(--lt-muted) !important;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-data-table .ddqx-table-quantity {
    white-space: nowrap;
}
body :is(main .ddqx-mcat-content,.ddqx-table-scope) .ddqx-table-note {
    margin: 10px 0 0;
    color: var(--lt-muted);
    font: 400 14px/1.4 Bahnschrift, "Segoe UI", Arial, sans-serif;
}

/* Comparison dialogs retain their selected-record headings, links and remove buttons. */
body .ddqx-compare-surface .ddqx-table-frame table.ddqx-directory-table :is(th,td) {
    min-inline-size: 190px;
    max-inline-size: 36ch;
}
body .ddqx-table-scope .ddqx-table-frame .ddqx-data-table :is(thead,.ddqx-data-heading) a {
    color: var(--lt-head-ink) !important;
    text-decoration: underline;
}
body .ddqx-table-scope .ddqx-table-frame .ddqx-data-table tbody tr:not(.ddqx-data-heading) a {
    color: var(--lt-ink) !important;
    text-decoration: underline;
}
body .ddqx-table-scope .ddqx-table-frame table.ddqx-data-table tr.ddqx-data-heading + tr > :is(th,td) {
    border-top: 0 !important;
}
@media (max-width: 680px) {
    body .ddqx-table-scope .ddqx-table-frame .ddqx-data-table .ddqx-table-prose {
        min-inline-size: calc(80px + 18ch);
    }
}
